//
//  main.m
//  自定义构造方法
//
//  Created by wenjim on 17/9/18.
//  Copyright © 2017年 WenJim. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "Person.h"

int main(int argc, const char * argv[]) {
    
    Person * p = [[Person alloc] init];
    
    NSLog(@"%@",p);
    
    
    Person * p2 = [[Person alloc]init];
    
    NSLog(@"%@",p2);
    
    Person * p3 = [[Person alloc]initWithAge:20];
    
    NSLog(@"%@",p3);
    
    Person * p5 = [[Person alloc]initWithAge:30];
    
    NSLog(@"%@",p5);
    
    Person * p6 = [[Person alloc]initWithAge:25 name:@"CWJ"];
    
    NSLog(@"%@",p6);
    
    return 0;
}
